﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Common/Master/FrameMain.Master" AutoEventWireup="true" CodeBehind="List.aspx.cs" Inherits="Forum.Web.Admin.UForum.Group.List" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
 <div id="toolbar">
        <ul>
            <li><a id="lnkAdd" runat="server" href="javascript:go()"><span><b style="background-image: url(../../common/images/icons/addnew.gif);">
                &nbsp;</b><asp:Literal ID="Literal1" runat="server" Text="增加"></asp:Literal></span></a></li>
            <li><a id="lnkDelete" runat="server" href="javascript:go()"><span><b style="background-image: url(../../common/images/icons/delete.gif);">
                &nbsp;</b><asp:Literal ID="Literal4" runat="server" Text="删除"></asp:Literal></span></a></li>
        </ul>
    </div>
    <div id="head">
        <div class="left">
            <asp:Label ID="lblMenuName" runat="server" Text="用户组列表" Font-Bold="true"></asp:Label><asp:Label
                ID="lblStatistic" runat="server" Text="Label"></asp:Label></div>
        <div class="right">
            <asp:DropDownList ID="TypeID" runat="server">
            </asp:DropDownList>
        </div>
    </div>
    <div id="list">
        <asp:HiddenField ID="hidSelectIDs" runat="server" Value="" />
        <table id="lvList" cellpadding="0" cellspacing="0" border="0" width="100%">
            <tr id="lvHeader" runat="server">
                <th class="sp">
                    &nbsp;
                </th>
                <th class="chk">
                    <asp:CheckBox ID="chkSelectAll" runat="server" />
                </th>
                <th>
                    组名称
                </th>
                <th>组类型</th>
                <th>
                    积分下限
                </th>
                <th>
                    积分上限
                </th>
                <th>
                    星星数目
                </th>
                <th>
                    附件最大尺寸
                </th>                
                <th>
                    修改
                </th>
            </tr>
            <asp:ListView ID="lv" runat="server" ItemPlaceholderID="items" OnItemDataBound="lv_ItemDataBound">
                <LayoutTemplate>
                    <tr id="items" runat="server">
                    </tr>
                </LayoutTemplate>
                <ItemTemplate>
                    <tr id="row" runat="server">
                        <td class="sp">
                            &nbsp;
                        </td>
                        <td class="chk">
                            <asp:CheckBox ID="chkSelect" runat="server" />
                        </td>
                        <td>
                            <asp:HyperLink ID="lnkName" runat="server" NavigateUrl="#" Text='<%# Eval("Name") %>'
                                EnableViewState="False"></asp:HyperLink>
                        </td>
                        <td>
                            <%#(Forum.Entity.Group.GroupType)(int)Eval("TypeID")%>
                        </td>
                        <td>
                            <%#Eval("CreditMin")%>&nbsp;
                        </td>
                        <td>
                            <%# Eval("CreditMax")%>&nbsp;
                        </td>
                        <td>
                            <%# Eval("StarCount")%>&nbsp;
                        </td>
                        
                        <td>
                            <%#Eval("MaxAttachSize")%>&nbsp;
                        </td>
                       
                        <td>
                            <asp:HyperLink ID="lnkEdit" runat="server">修改</asp:HyperLink>
                        </td>
                    </tr>
                </ItemTemplate>
                <EmptyDataTemplate>
                    <tr>
                        <td colspan="9" class="empty">
                            没有组
                        </td>
                    </tr>
                </EmptyDataTemplate>
            </asp:ListView>
        </table>
    </div>
    <div id="toolbar_bottom" style="border-top-width:0px;">
        <asp:Button ID="btnRefresh" runat="server" Text="Button" OnClick="btnRefresh_Click"
            CssClass="refresh" />
        <asp:Button ID="btnDelete" runat="server" Text="删除" OnClick="btnDelete_Click" CausesValidation="False" />
    </div>
</asp:Content>
